<?php
namespace App\Http\Controllers;
use App\MembersModel;
use Illuminate\Http\Request;

class MemberController extends Controller {
    public function index(Request $Request) {
        MembersModel::create([            //插入数据
            'id' => 1,
            'name' => 'tom',
            'phone' => 110]);
        dd(MembersModel::all());         //查询并打印数据
    }
}
